import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
import store from './stores'
import './assets/styles/main.css'
import './mock/activityData'
import './mock/comment/commentData'
import './mock/user/followersData'
import './mock/user/joinedCommunities'
import './mock/user/viewersData'
// import './mock/store/stores'
// import './mock/store/orders'

// FontAwesome 引入
import { library } from '@fortawesome/fontawesome-svg-core'
import { faChevronLeft, faChevronRight, faInfoCircle, faCheckCircle, faExclamationCircle, faTimesCircle } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import ToastPlugin from './plugins/toast'

// 必须调用 add 方法注册图标
library.add(
  faChevronLeft, 
  faChevronRight, 
  faInfoCircle, 
  faCheckCircle, 
  faExclamationCircle, 
  faTimesCircle
)

Vue.use(VueAwesomeSwiper)
Vue.use(ToastPlugin)
Vue.component('font-awesome-icon', FontAwesomeIcon) // 全局注册（可选）

new Vue({
  store,
  router,
  render: (h) => h(App)
}).$mount('#app')
